package icu.zhangzihan.gis251.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class Content {
    @ApiModelProperty(value = "用户名",required = true)
    private Long id;

    @ApiModelProperty(value = "标题",required = true)
    private String title;

    @ApiModelProperty(value = "内容",required = true)
    private String content;

    @ApiModelProperty(value = "简要",required = true)
    private String brief;

    @ApiModelProperty(value = "封面地址",required = true)
    private String imgUrl;

    @ApiModelProperty(value = "视频地址")
    private String videoUrl;

    @ApiModelProperty(value = "一级分类类型",required = true)
    private String type;

    @ApiModelProperty(value = "二级分类类型",required = true)
    private String categoryId;

    @ApiModelProperty(value = "创建者",required = true)
    private String createBy;

    @ApiModelProperty(value = "创建时间",required = true)
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @ApiModelProperty(value = "更新时间",required = true)
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "浏览次数")
    private String viewCount;

    @ApiModelProperty(value = "状态",required = true)
    private String status;
}
